package test03;

public class Official extends Person {
    private String party;
    private String posy;

    public Official(String name, String id, String birthDate, String education, String occupation, String party, String posy) {
        super(name, id, birthDate, education, occupation);
        this.party = party;
        this.posy = posy;
    }

    public String getParty() {
        return party;
    }

    public void setParty(String party) {
        this.party = party;
    }

    public String getPosy() {
        return posy;
    }

    public void setPosy(String posy) {
        this.posy = posy;
    }

    @Override
    public String toString() {
        return "Official{" +
                super.toString() +
                "party='" + party + '\'' +
                ", posy='" + posy + '\'' +
                '}';
    }
}
